package org.lh.ibernate.core.tools;


import java.util.ArrayList;
import java.util.List;

public class ParameterLink {

    private List<Object> paramList=new ArrayList<Object>();

    public List<Object> getParamList() {
        return paramList;
    }

    public void setParamList(List<Object> paramList) {
        this.paramList = paramList;
    }

    /*
    *
    * @author idea
    * @date 2018/7/11
    * @param [parameter]
    * @return org.lh.ibernate.core.tools.ParameterLink
    * @des 参数链 采用了链式编程的思想
    */
    public  ParameterLink add(Object parameter){
        this.paramList.add(parameter);
        return this;
    }

    /*
    *
    * @author idea
    * @date 2018/7/11
    * @param []
    * @return void
    * @des 清空对象，垃圾回收
    */
    public void clear(){
        this.paramList.clear();
    }
}
